package kr.icg.mshtest2;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Mention {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private String authorEmail;
	
	@Persistent
	private String authorNickName;
	
	@Persistent
	private String content;
	
	@Persistent
	private float latitude;
	
	@Persistent
	private float longitude;
	
	@Persistent
	private Date date;
	
	public Mention(String authorEmail, String authorNickName, String content, float latitude, float longitude, Date date) {
		this.authorEmail = authorEmail;
		this.authorNickName = authorNickName;
		this.content = content;
		this.latitude = latitude;
		this.longitude = longitude;
		this.date = date;
	}
	
	public Key getKey() {
		return key;
	}
	
	public String getAuthorEmail() {
		return authorEmail;
	}
	
	public String getAuthorNickName() {
		return authorNickName;
	}
	
	public String getContent() {
		return content;
	}
	
	public float getLatitude() {
		return latitude;
	}
	
	public float getLongitude() {
		return longitude;
	}
	
	public Date getDate() {
		return date;
	}
	
	public void setAuthorEmail(String authorEmail) {
		this.authorEmail = authorEmail;
	}
	
	public void setAuthorNickName(String authorNickName) {
		this.authorNickName = authorNickName;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
	
	public void setLatitude(float latitude) {
		this.latitude = latitude;
	}
	
	public void setLongitude(float longitude) {
		this.longitude = longitude;
	}
	
	public void setDate(Date date) {
		this.date = date;
	}
}
